package com.xuecheng.content.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuecheng.content.entity.Teachplan;
import com.xuecheng.content.entity.TeachplanNode;

import java.util.List;

/**
 * <p>
 * 课程计划 Mapper 接口
 * </p>
 *
 * @author itcast
 */
public interface TeachplanMapper extends BaseMapper<Teachplan> {

    /**
     * 通过课程id查出123级所有信息
     * @param courseId
     * @return
     */
    List<TeachplanNode> selectTreeNodesByCourseId(Long courseId);


    Integer getMaxOrderby(Long id);
}
